package com.iven.xie.designpattern.builder;

/**
 * @author xiezhendong
 * @data 2021/7/30
 */
public class IntelBuilder extends Builder {
    Computer computer = new Computer();

    @Override
    public void buildCpu() {
        computer.add("我是intel的cpu");
    }

    @Override
    public void buildMainBoard() {
        computer.add("我是intel的主板");
    }

    @Override
    public void buildHardDisk() {
        computer.add("我是intel的硬盘");
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
